package com.keepsport.keepsportapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_user_activity")
@NoArgsConstructor
public class UserActivity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer aid;
    private Integer uid;
    private String result;
    private Date ctime;

    public UserActivity(Integer aid, Integer uid) {
        this.aid = aid;
        this.uid = uid;
        this.result="";
        this.ctime=new Date();
    }
}
